<div class="controls controls-top">
    <a href="<?= $this->createUrl('/admin/rumors/manage'); ?>">Добавить слух</a>
</div>

<?php if ( Yii::app()->user->hasFlash('news_added_success') ) : ?>
<br />
<div class="success">
    <?= Yii::app()->user->getFlash('news_added_success'); ?>
</div>
<br />
<?php endif; ?>

<?php if ( Yii::app()->user->hasFlash('rumor_deleted_success') ) : ?>
<br />
<div class="success">
    <?= Yii::app()->user->getFlash('rumor_deleted_success'); ?>
</div>
<br />
<?php endif; ?>

<div>
    <form id="tiles-list-form">
    <?php
    $this->widget('zii.widgets.grid.CGridView', array
    (
        'dataProvider' => $oDataProvider,
        'columns'      => array
        (
            'rumor_title',
            array
            (
                'name'  => 'rumor_cdate',
                'value' => 'date("d-m-Y H:i", $data->rumor_cdate)'
            ),
            array
            (
                'type'        => 'raw',
                'htmlOptions' => array('class' => 'center'),
                'value'       => 'CHtml::link("редактировать", array("/admin/rumors/manage", "rumor_id" => $data->rumor_id))."&nbsp;&nbsp;".CHtml::link("удалить", array("/admin/rumors/delete", "rumor_id" => $data->rumor_id), array("class" => "delete"))'
            )
        ),
        'cssFile' => false,
        'pager'   => array
        (
            'cssFile' => false,
            'header'  => ''
        ),
        'summaryText' => '<div class="fl">Показаны {start}-{end} из {count} результатов.</div>'
    ));
    ?>
    </form>
</div>